/**
 * 
 */
package com.vision.sales.cm.serv.rpc;

import java.util.List;

import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.sencha.gxt.data.shared.loader.PagingLoadResult;
import com.vision.core.cm.exception.RpcException;
import com.vision.core.cm.serv.rpc.AbstractService;
import com.vision.sales.cl.ui.component.TransactionLoadConfig;
import com.vision.sales.cm.data.TransactionStatus;
import com.vision.sales.cm.db.data.Collection;
import com.vision.sales.cm.db.data.CollectionItem;

/**
 * @author Mark
 *
 */
@RemoteServiceRelativePath("collection")
public interface CollectionService extends AbstractService<Collection> {
	
	PagingLoadResult<Collection> getList(TransactionLoadConfig config) throws RpcException;
	
	List<Collection> getCollections(TransactionStatus status) throws RpcException;
	
	List<CollectionItem> getCollectionItems(long collectionId) throws RpcException;
	
	List<Collection> postCollections(List<Collection> collections) throws RpcException;
	
}
